package com.hunter2.standard.entity;

import java.util.Date;



public class CvBasic {
    private String id;

    private Integer candidateid;

    private Date createTime;

    private Date updateTime;

    private Integer processStage;

    private String name;

    private String usedname;

    private String englishname;

    private Integer gender;

    private Integer cardtype;

    private String idcard;

    private String company;

    private String title;

    private String city;

    private String birthPlace;

    private String phone;

    private String mobile;

    private String email;

    private String age;

    private String birthday;

    private Integer marriage;

    private String major;

    private int degree;

    private String school;

    private String jobtime;

    private String height;

    private String weight;

    private String bwh;

    private String nationality;

    private String country;

    private String health;

    private String politics;

    private Integer jobStatus;

    private String currentSalary;

    private Integer expectedSalary;

    private String expectedCity;

    private String expectedJob;

    private String weixin;

    private String qq;

    private String linkedin;

    private String dajie;

    private String weibo;

    private Float score;

    private String address;

    private Integer tradeId;

    private Integer functionId;

    private Integer mpc;

    private Integer photoId;

    private String comment;

    private String preference;

    private Integer flag;

    private Integer fileid;

    private Integer ownerid;

    private Integer companyId;

    private Integer jobTime;

    private String workYear;  //Date

    private String basicInfo;

    
    private int integrity;
    private String total_score;
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getCandidateid() {
        return candidateid;
    }

    public void setCandidateid(Integer candidateid) {
        this.candidateid = candidateid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getProcessStage() {
        return processStage;
    }

    public void setProcessStage(Integer processStage) {
        this.processStage = processStage;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getUsedname() {
        return usedname;
    }

    public void setUsedname(String usedname) {
        this.usedname = usedname == null ? null : usedname.trim();
    }

    public String getEnglishname() {
        return englishname;
    }

    public void setEnglishname(String englishname) {
        this.englishname = englishname == null ? null : englishname.trim();
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getCardtype() {
        return cardtype;
    }

    public void setCardtype(Integer cardtype) {
        this.cardtype = cardtype;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard == null ? null : idcard.trim();
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company == null ? null : company.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city == null ? null : city.trim();
    }

    public String getBirthPlace() {
        return birthPlace;
    }

    public void setBirthPlace(String birthPlace) {
        this.birthPlace = birthPlace == null ? null : birthPlace.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age == null ? null : age.trim();
    }

    public String getBirthday() {
        return birthday;
    }
    
    public void setBirthday(String birthday) {
        this.birthday = birthday == null ? null : birthday.trim();
    }

    public Integer getMarriage() {
        return marriage;
    }

    public void setMarriage(Integer marriage) {
        this.marriage = marriage;
    }

    public String getMajor() {
        return major;
    }
    

    public void setMajor(String major) {
        this.major = major == null ? null : major.trim();
    }

    public int getDegree() {
        return degree;
    }

    public void setDegree(int degree) {
        this.degree = degree;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school == null ? null : school.trim();
    }

    public String getJobtime() {
        return jobtime;
    }

    public void setJobtime(String jobtime) {
        this.jobtime = jobtime == null ? null : jobtime.trim();
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height == null ? null : height.trim();
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight == null ? null : weight.trim();
    }

    public String getBwh() {
        return bwh;
    }

    public void setBwh(String bwh) {
        this.bwh = bwh == null ? null : bwh.trim();
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality == null ? null : nationality.trim();
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country == null ? null : country.trim();
    }

    public String getHealth() {
        return health;
    }

    public void setHealth(String health) {
        this.health = health == null ? null : health.trim();
    }

    public String getPolitics() {
        return politics;
    }

    public void setPolitics(String politics) {
        this.politics = politics == null ? null : politics.trim();
    }

    public Integer getJobStatus() {
        return jobStatus;
    }

    public void setJobStatus(Integer jobStatus) {
        this.jobStatus = jobStatus;
    }

    public String getCurrentSalary() {
        return currentSalary;
    }

    public void setCurrentSalary(String currentSalary) {
        this.currentSalary = currentSalary == null ? null : currentSalary.trim();
    }

    public Integer getExpectedSalary() {
        return expectedSalary;
    }

    public void setExpectedSalary(Integer expectedSalary) {
        this.expectedSalary = expectedSalary;
    }

    public String getExpectedCity() {
        return expectedCity;
    }

    public void setExpectedCity(String expectedCity) {
        this.expectedCity = expectedCity == null ? null : expectedCity.trim();
    }

    public String getExpectedJob() {
        return expectedJob;
    }

    public void setExpectedJob(String expectedJob) {
        this.expectedJob = expectedJob == null ? null : expectedJob.trim();
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin == null ? null : weixin.trim();
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq == null ? null : qq.trim();
    }

    public String getLinkedin() {
        return linkedin;
    }

    public void setLinkedin(String linkedin) {
        this.linkedin = linkedin == null ? null : linkedin.trim();
    }

    public String getDajie() {
        return dajie;
    }

    public void setDajie(String dajie) {
        this.dajie = dajie == null ? null : dajie.trim();
    }

    public String getWeibo() {
        return weibo;
    }

    public void setWeibo(String weibo) {
        this.weibo = weibo == null ? null : weibo.trim();
    }

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Integer getTradeId() {
        return tradeId;
    }

    public void setTradeId(Integer tradeId) {
        this.tradeId = tradeId;
    }

    public Integer getFunctionId() {
        return functionId;
    }

    public void setFunctionId(Integer functionId) {
        this.functionId = functionId;
    }

    public Integer getMpc() {
        return mpc;
    }

    public void setMpc(Integer mpc) {
        this.mpc = mpc;
    }

    public Integer getPhotoId() {
        return photoId;
    }

    public void setPhotoId(Integer photoId) {
        this.photoId = photoId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment == null ? null : comment.trim();
    }

    public String getPreference() {
        return preference;
    }

    public void setPreference(String preference) {
        this.preference = preference == null ? null : preference.trim();
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getFileid() {
        return fileid;
    }

    public void setFileid(Integer fileid) {
        this.fileid = fileid;
    }

    public Integer getOwnerid() {
        return ownerid;
    }

    public void setOwnerid(Integer ownerid) {
        this.ownerid = ownerid;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public Integer getJobTime() {
        return jobTime;
    }

    public void setJobTime(Integer jobTime) {
        this.jobTime = jobTime;
    }

    public String getWorkYear() {
        return workYear;
    }

    public void setWorkYear(String workYear) {
        this.workYear = workYear;
    }

    public String getBasicInfo() {
        return basicInfo;
    }

    public void setBasicInfo(String basicInfo) {
        this.basicInfo = basicInfo == null ? null : basicInfo.trim();
       
    }
    
    public int getIntegrity() {
		return integrity;
	}

	public void setIntegrity(int integrity) {
		this.integrity = integrity;
	}

	public String getTotal_score() {
		return total_score;
	}

	public void setTotal_score(String total_score) {
		this.total_score = total_score;
	}
    
    /**
     * @param basic 20161228 分表
     * @return
     */
    public String write2Line(CvBasic basic) {
		// 25 id company_id integrity
    	// 57行
		String line = "\\N" + "\t" + basic.getCandidateid() + "\t" + "\\N" + "\t" + "\\N" + "\t" + "\\N"   //5
				+ "\t" + basic.getName() + "\t" + basic.getUsedname() + "\t" + basic.getEnglishname() + "\t" + basic.getGender() + "\t" + basic.getCardtype() + "\t"  //5
				+ basic.getIdcard() + "\t" + basic.getCompany() + "\t" + basic.getTitle() + "\t" + basic.getCity() + "\t" + basic.getBirthPlace() + "\t" + basic.getPhone()  //6
				+ "\t" + basic.getMobile() + "\t" + basic.getEmail() + "\t" + basic.getAge() + "\t" + basic.getBirthday() + "\t" + basic.getMarriage() + "\t" + basic.getMajor() + "\t"  //6
				+ basic.getDegree() + "\t" + basic.getSchool() + "\t" + basic.getJobtime() + "\t" + basic.getHealth() + "\t" + basic.getWeight() + "\t" + basic.getBwh() + "\t"    //6
				+ basic.getNationality() + "\t" + basic.getCountry() + "\t" + basic.getHealth() + "\t" + basic.getPolitics() + "\t" + basic.getJobStatus() + "\t"  //5
				+ basic.getCurrentSalary() + "\t" + basic.getExpectedSalary() + "\t" + basic.getExpectedCity() + "\t" + basic.getExpectedJob() + "\t"    //4 
				+ basic.getWeixin() + "\t" + basic.getQq() + "\t"  + basic.getLinkedin() + "\t" + basic.getDajie() + "\t" + basic.getWeibo() + "\t" + basic.getScore()      //6                  
				+ "\t" + basic.getBasicInfo() + "\t" + basic.getAddress() + "\t" + basic.getTradeId() + "\t" + basic.getFunctionId() + "\t" + basic.getMpc() + "\t"+ basic.getPhotoId()    //6
				+ "\t" + basic.getComment() + "\t" + basic.getPreference() + "\t" + basic.getFlag() + "\t" + basic.getFileid() + "\t" + basic.getOwnerid() + "\t"   //5
				+ basic.getCompanyId() + "\t" + basic.getJobTime() + "\t" + basic.getWorkYear() + "\t";   //5
		
		return line;
	}
    /**
     * @param cv_basic更新best,职品人才
     * @return
     */
    public String write2Line2(CvBasic basic) { 
    	// 59行
		String line = "\\N" + "\t" + basic.getCandidateid() + "\t" + "\\N"  + "\t" + "\\N"  + "\t" + "\\N"    //5
				+ "\t" + basic.getName() + "\t" + basic.getUsedname() + "\t" + basic.getEnglishname() + "\t" + basic.getGender() + "\t" + basic.getCardtype() + "\t"  //5
				+ basic.getIdcard() + "\t" + basic.getCompany() + "\t" + basic.getTitle() + "\t" + basic.getCity() + "\t" + basic.getBirthPlace() + "\t" + basic.getPhone()  //6
				+ "\t" + basic.getMobile() + "\t" + basic.getEmail() + "\t" + basic.getAge() + "\t" + basic.getBirthday() + "\t" + basic.getMarriage() + "\t" + basic.getMajor() + "\t"  //6
				+ basic.getDegree() + "\t" + basic.getSchool() + "\t" + basic.getJobtime() + "\t" + basic.getHeight() + "\t" + basic.getWeight() + "\t" + basic.getBwh() + "\t"    //6
				+ basic.getNationality() + "\t" + basic.getCountry() + "\t" + basic.getHealth() + "\t" + basic.getPolitics() + "\t" + basic.getJobStatus() + "\t"  //5
				+ basic.getCurrentSalary() + "\t" + basic.getExpectedSalary() + "\t" + basic.getExpectedCity() + "\t" + basic.getExpectedJob() + "\t"    //4 
				+ basic.getWeixin() + "\t" + basic.getQq() + "\t"  + basic.getLinkedin() + "\t" + basic.getDajie() + "\t" + basic.getWeibo() + "\t" + basic.getScore()      //6                  
				+ "\t" + basic.getBasicInfo() + "\t" + basic.getAddress() + "\t" + basic.getTradeId() + "\t" + basic.getFunctionId() + "\t" + basic.getMpc() + "\t"+ "\\N"    //6 basic.getPhotoId()
				+ "\t" + basic.getComment() + "\t" + basic.getPreference() + "\t" + basic.getFlag() + "\t" + "\\N" + "\t" + basic.getOwnerid() + "\t"   //5    basic.getFileid()
				+ basic.getCompanyId() + "\t" + basic.getJobTime() + "\t" + "0000-00-00 00:00:00" + "\t"+basic.getIntegrity()+"\t"+basic.getTotal_score()+"\t";   //5
				
		return line;
	}
    
	@Override
	public String toString() {
		return "CvBasic [id=" + id + ", candidateid=" + candidateid + ", createTime=" + createTime + ", updateTime="
				+ updateTime + ", processStage=" + processStage + ", name=" + name + ", usedname=" + usedname
				+ ", englishname=" + englishname + ", gender=" + gender + ", cardtype=" + cardtype + ", idcard="
				+ idcard + ", company=" + company + ", title=" + title + ", city=" + city + ", birthPlace=" + birthPlace
				+ ", phone=" + phone + ", mobile=" + mobile + ", email=" + email + ", age=" + age + ", birthday="
				+ birthday + ", marriage=" + marriage + ", major=" + major + ", degree=" + degree + ", school=" + school
				+ ", jobtime=" + jobtime + ", height=" + height + ", weight=" + weight + ", bwh=" + bwh
				+ ", nationality=" + nationality + ", country=" + country + ", health=" + health + ", politics="
				+ politics + ", jobStatus=" + jobStatus + ", currentSalary=" + currentSalary + ", expectedSalary="
				+ expectedSalary + ", expectedCity=" + expectedCity + ", expectedJob=" + expectedJob + ", weixin="
				+ weixin + ", qq=" + qq + ", linkedin=" + linkedin + ", dajie=" + dajie + ", weibo=" + weibo
				+ ", score=" + score + ", address=" + address + ", tradeId=" + tradeId + ", functionId=" + functionId
				+ ", mpc=" + mpc + ", photoId=" + photoId + ", comment=" + comment + ", preference=" + preference
				+ ", flag=" + flag + ", fileid=" + fileid + ", ownerid=" + ownerid + ", companyId=" + companyId
				+ ", jobTime=" + jobTime + ", workYear=" + workYear + ", basicInfo=" + basicInfo + "]";
	}

	
}